export default [
  {
    path: '/',
    name: 'Home',
    meta: { name: '首页', icon: 'iconalert', hide: true },
    component: () => import(/* webpackChunkName: "warning" */ '@/views/Home/Home'),
  },
  {
    path: '/device-manage-center',
    name: 'DeviceCenter',
    meta: { name: '设备管理中心', icon: 'iconcreditcard' },
    redirect: '/device-status',
    component: { render: h => h('router-view') },
    children: [
      {
        path: '/device-status',
        name: 'DeviceStatus',
        meta: { name: '设备状态监测', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DeviceCenter/Status'),
      },
      {
        path: '/device-tree',
        name: 'DeviceTree',
        meta: { name: '网络设备树', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DeviceCenter/Tree'),
      },
      {
        path: '/products-manage',
        name: 'ProductsManage',
        meta: { name: '产品管理' },
        redirect: '/products-online',
        component: { render: h => h('router-view') },
        children: [
          {
            path: '/products-online',
            name: 'Products',
            meta: { name: '已发布产品',icon: 'none' },
            component: () => import(/* webpackChunkName: "card" */ '@/views/DeviceCenter/ProductsOnline'),
          },
          {
            path: '/products-check',
            name: 'ProductsCheck',
            meta: { name: '审核管理',icon: 'none' },
            component: () => import(/* webpackChunkName: "card" */ '@/views/DeviceCenter/ProductsCheck'),
          },
        ]
      },
      {
        path: '/device-manage',
        name: 'DeviceCenter',
        meta: { name: '设备管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DeviceCenter/Devices'),
      },
    ]
  },
  {
    path: '/app-manage-center',
    name: 'AppCenter',
    meta: { name: '应用管理中心', icon: 'iconalert' },
    component: { render: h => h('router-view') },
    children: [
      {
        path: '/app-online',
        name: 'AppOnline',
        meta: { name: '已上线应用', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/AppCenter/AppOnline'),
      },
      {
        path: '/app-manage',
        name: 'AppManage',
        meta: { name: '应用管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/AppCenter/AppManage'),
      },
    ]
  },
  {
    path: '/data-manage-center',
    name: 'DataManageCenter',
    meta: { name: '数据管理中心', icon: 'icontable' },
    component: { render: h => h('router-view') },
    children: [
      {
        path: '/data-theme',
        name: 'DataTheme',
        meta: { name: '主题数据仓', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataTheme'),
      },
      {
        path: '/data-tag',
        name: 'DataTag',
        meta: { name: '标签管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataTag'),
      },
      {
        path: '/data-task-list',
        name: 'DataTaskList',
        meta: { name: '任务列表', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataTaskList'),
      },
      {
        path: '/data-log',
        name: 'DataLog',
        meta: { name: '任务日志', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataLog'),
      },
      {
        path: '/data-email',
        name: 'DataEmail',
        meta: { name: '邮件管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataEmail'),
      },
      {
        path: '/data-status',
        name: 'DataStatus',
        meta: { name: '数据状态管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/DataCenter/DataStatus'),
      },
    ]
  },
  {
    path: '/maintain-manage-center',
    name: 'MaintainManageCenter',
    meta: { name: '运维管理中心', icon: 'iconcluster' },
    component: { render: h => h('router-view') },
    children: [
      {
        path: '/maintain-test',
        name: 'MaintainTest',
        meta: { name: '设备在线调试', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/MaintainCenter/MaintainTest'),
      },
      {
        path: '/maintain-warning',
        name: 'MaintainWarning',
        meta: { name: '实时告警', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/MaintainCenter/MaintainWarning'),
      },
      {
        path: '/maintain-view',
        name: 'MaintainView',
        meta: { name: '可视化监控', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/MaintainCenter/MaintainView'),
      },
      {
        path: '/maintain-fault-analysis',
        name: 'MaintainFaultAnalysis',
        meta: { name: '自动化故障分析', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/MaintainCenter/MaintainFaultAnalysis'),
      },
      {
        path: '/maintain-log',
        name: 'MaintainLog',
        meta: { name: '日志管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/MaintainCenter/MaintainLog'),
      },
    ]
  },
  {
    path: '/system-manage-center',
    name: 'SystemManageCenter',
    meta: { name: '系统管理中心', icon: 'iconsetting' },
    component: { render: h => h('router-view') },
    children: [
      {
        path: '/system-region',
        name: 'SystemRegion',
        meta: { name: '区域字典', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemRegion'),
      },
      {
        path: '/system-department',
        name: 'SystemDepartment',
        meta: { name: '科室字典', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemDepartment'),
      },
      {
        path: '/system-point',
        name: 'SystemPoint',
        meta: { name: '科室字典', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemPoint'),
      },
      {
        path: '/system-param',
        name: 'SystemParam',
        meta: { name: '点位字典', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemParam'),
      },
      {
        path: '/system-category',
        name: 'SystemCategory',
        meta: { name: '系统参数', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemCategory'),
      },
      {
        path: '/system-user',
        name: 'SystemUser',
        meta: { name: '类别管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemUser'),
      },
      {
        path: '/system-role',
        name: 'SystemRole',
        meta: { name: '角色管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemRole'),
      },
      {
        path: '/system-menu',
        name: 'SystemMenu',
        meta: { name: '菜单管理', },
        component: () => import(/* webpackChunkName: "card" */ '@/views/SystemCenter/SystemMenu'),
      },
    ]
  },
  {
    path: '/interface',
    name: 'Interface',
    meta: { name: '接口管理中心', icon: 'iconinteration' },
    component: () => import(/* webpackChunkName: "card" */ '@/views/InterfaceCenter/Interface'),
  },
];
